package com.ccrfid.rmc6.repository.device;

import com.ccrfid.rmc6.entity.device.CardreaderEntity;
import com.ccrfid.rmc6.repository.search.SearchableRepository;
import org.springframework.data.repository.Repository;

public interface CardreaderRepository extends Repository<CardreaderEntity, Long>, SearchableRepository<CardreaderEntity> {
    //
    CardreaderEntity getById(Long id);
    //
    CardreaderEntity getBySn(String sn);
    //
    Boolean existsById(Long id);
    //
    Boolean existsBySn(String sn);
    //
    CardreaderEntity save(CardreaderEntity entity);
    //
    void deleteById(Long id);
}
